#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/9/16 16:40
# @Author : 吴敬超
# explain:

#
# for i in range(5):
#     print i
#
# plug = 5.0

# if plug in range(1, 5):
#     print "The number spider has disappeared down the plughole"

# if 1 <= plug <= 5:
#     print "The number spider has disappeared down the plughole"


# 经纬   Longitude and latitude
def rangflag(x=0, y=0, xstart=39, xstop=178, ystart=-16, ystop=62):
    if (xstart <= x <= xstop) and (ystart <= y <= ystop):
        return True

    return False


# 经纬   Longitude and latitude
def Longituderangflag(x, xstart=39, xstop=178):
    if xstart <= x <= xstop:
        return True

    return False


# 经纬   Longitude and latitude
def latituderangflag(y, ystart=-16, ystop=62):
    if ystart <= y <= ystop:
        return True

    return False
print rangflag('90', -5)


print latituderangflag(-40)
